package com.serviceprovider.business.module.admin.license.services.dao.interfaces;

//~--- non-JDK imports --------------------------------------------------------

import com.serviceprovider.business.module.admin.license.model.License;
import com.serviceprovider.business.module.common.Page;

import org.springframework.security.annotation.Secured;

//~--- JDK imports ------------------------------------------------------------

import java.util.List;

/**
 * This class manages various License operations.
 */
public interface ILicenseService {
    @Secured({ "ACTION_READ" })
    License getLicenseById(int id);

    @Secured({ "ACTION_READ" })
    List<License> findAll();

    @Secured({ "ACTION_READ" })
    Page<License> findAll(int pageNo, int recordSize, String sortColumn, String sortOrder);

    @Secured({ "ACTION_CREATE" })
    void insertLicense(License license);

    @Secured({ "ACTION_UPDATE" })
    void updateLicense(License license);

    @Secured({ "ACTION_DELETE" })
    void deleteLicensesById(int[] idList);
}



